import request from './request'
// import { Service } from './http'

export function getNavList () {
  return request({
    url: '/get_shop_list',
    method: 'post'
  })
}
export function uploadimg (fileurl) {
  return request({
    url: '/upload_data',
    method: 'post',
    data: fileurl,
    headers: {'Content-Type': 'multipart/form-data'}
  })
}
export function addorder (data) {
  return request({
    url: '/add_order',
    method: 'post',
    data
  })
}
export function getmycousult (data) {
  return request({
    url: '/get_order',
    method: 'post',
    data: {
      uid: localStorage.getItem('uid'),
      cate_id: data
    }
  })
}
export function getdetail (data) {
  return request({
    url: '/get_lyb',
    method: 'post',
    data: {
      order_data_id: data
    }
  })
}
export function tosendmessage (data) {
  return request({
    url: '/add_lyb',
    method: 'post',
    data
  })
}
export function getcountFirst (data) {
  return request({
    url: '/get_sx_content',
    method: 'post',
    data
  })
}
